﻿#include "CmdSetHeatMapResultValueDataChanged.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdSetHeatMapResultValueDataChanged::CmdSetHeatMapResultValueDataChanged()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdSetHeatMapResultValueDataChanged::~CmdSetHeatMapResultValueDataChanged()
    {
    }

    bool CmdSetHeatMapResultValueDataChanged::execute()
    {
        //bool _success = false;
        emit IBaseSignalInstance->signal_setHeatMapResultValueDataChanged(m_windowId, m_valueIndex);
        return true;
    }

    void CmdSetHeatMapResultValueDataChanged::undo()
    {
    }

    void CmdSetHeatMapResultValueDataChanged::redo()
    {
        // execute();
    }

    void CmdSetHeatMapResultValueDataChanged::setHeatMapResultValueDataChanged(int windowId, int index)
    {
        m_windowId = windowId;
        m_valueIndex = index;
    }

} // namespace PostCommand
